<!-- 运算示例 -->
{layout file="base.html"}
<body>
{empty name="users"}
    users 变量为空
{else}
    {for name="users" index="index" value="user"}
        <div>{user['userid']}</div>
        <div>{user['realName']}</div>
        <div>{:user['realName']|safe}</div>
    {/for}

{/empty}

{notempty name="users"}
    {for name="users" index="index" value="user"}
        <div>{user['userid']}</div>
        <div>{user['realName']}</div>
        <div>{:user['realName']|safe}</div>
    {/for}
{else}
    users 变量为空
{/notempty}

</body>








